<%@ page language="java" import="java.util.*,com.hs.core.cache.*,com.hs.dnms.model.*" pageEncoding="utf-8"%>
 <%
  String content = (String)request.getAttribute("category");
  String datatype = (String)request.getAttribute("datatype");
  String orderName = (String)request.getAttribute("orderName");
  String orderNum = (String)request.getAttribute("orderNum");
	
  PageUtil pageUtil = (PageUtil)request.getAttribute("dataList");
    String pageStr = ""; 
    int perpageCount = 1;
    int currentPage = 1;
    List dataList = null;
    if(null != pageUtil){
	   dataList = pageUtil.getPageList();
	   pageStr = pageUtil.getPageStr();
	   perpageCount = pageUtil.getNumberPerPage();
	   currentPage = pageUtil.getCurrentPage();
	} 
  %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="../../include.jsp"%>  
<script src='<%=basePath%>dwr/interface/standarddwr.js'></script> 
<script language="javascript" type="text/javascript">
function searchData(id){
	document.searchform.action="<%=basePath%>statics/minedata.do";	
	document.searchform.submit();
}

 function exportData()
{
	document.searchform.action="<%=basePath%>statics/exportData.do";	
  	document.searchform.submit();
}

//删除
 function deleteMaga(id){
 	if(confirm("确定要删除该信息吗?")){
 		standarddwr.delDatamine(id,callback4delete); 
 	}
 }
 
  function callback4delete(message){
    if("0" == message)
 	    alert("删除标准数据时出错!");  
 	else{
 	   alert("成功删除该标准数据!");
 	   document.searchform.submit();
 	} 
 }
</script>
</head>
<body>
<div class="cont">
    <dl class="deta_list">
<form name="searchform" action="<%=basePath %>statics/minedata.do?1=1" method=post >
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="deta_list_sear">
      <tr>
        <td width="15%">
          名称：
        </td>
        <td width="20%">
          <input name="content" type="text" value="<%=content == null?"":content%>" class="sear_input"/>
        </td>  
        <td width="15%">
          数据类型：
        </td>
         <td width="20%">
         <%out.print(DictCacheUtil.getInst().selectStrNodefault("datatype","width:100%",datatype,"17",null)); %>
          </td>
         <td width="15%" align="left">
            <input name="" type="button" value="查询" onclick="searchData();" class="butt4"/>
        </td>
         <td width="15%">
			<input name="export" type="button" value="导出全部"  onclick="exportData();" class="butt4"/> 
		</td>
        </tr>
    </table>
 </form>
	<table border="0" cellspacing="0" cellpadding="0" class="list">
      <tr>
        <th width="5%">序号</th>  
        <th width="25%">名称</th> 
        <th width="20%"><a href="javaScript:orderPage('a.zhichidu','<%=OrderTool.getOrderNum("a.zhichidu",orderName,orderNum)%>');">支持度&nbsp;&nbsp;<%=OrderTool.getOrderImage(basePath,OrderTool.getOrderNum("a.zhichidu",orderName,orderNum))%></a></th>
        <th width="20%"><a href="javaScript:orderPage('a.zhixingdu','<%=OrderTool.getOrderNum("a.zhixingdu",orderName,orderNum)%>');">置信度&nbsp;&nbsp;<%=OrderTool.getOrderImage(basePath,OrderTool.getOrderNum("a.zhixingdu",orderName,orderNum))%></a></th>
        <th width="10%">数据类型</th>
        <th width="20%">备注</th>  
      </tr>
      
      <% if(null != dataList && dataList.size()>0){
      		for(int i =0;i<dataList.size();i++){
      			DnmsDatamine dm = (DnmsDatamine)dataList.get(i);
       %>
      <tr>
        <td align="center"><%= perpageCount*(currentPage-1)+i+1 %></td> 
        <td><%=StringUtilTool.NULL2Blank(dm.getContent())%></td>
        <td><%=StringUtilTool.NULL2Blank(dm.getZhichidu()+"")%></td>
        <td><%=StringUtilTool.NULL2Blank(dm.getZhixingdu()+"") %></td>
        <td><%=DictCacheUtil.getInst().selectStr4Display(dm.getDatatype()+"","17") %></td>
        <td><%=StringUtilTool.NULL2Blank(dm.getMemo())%></td>
        <!-- td><input onclick="deleteMaga('<%=dm.getId() %>');" type="button" value="删除" class="but_2"/></td-->
      </tr>
      
      <%}}else{ %>
      <tr>
        <td align="center" colspan="7"><font color="red">没有数据!</font></td>
      </tr>
      <%} %>
    </table>
   
 	<div class="page"><%=pageStr %></div>
     </dl>
</div>
</body>
</html>

